<cfcomponent extends="org.cfcunit.framework.TestCase">


  <cffunction name="setUp" returntype="void" access="public">
			<cfset coldSpring = createObject( 'component', 'coldspring.beans.DefaultXmlBeanFactory').init() />
			<cfset coldSpring.loadBeansFromXmlFile("/actionpacks/projectshen/tests/cs/dojoadapter.test.cs.xml") />
      <cfset variables.dojoAdapter = coldSpring.getBean('DojoAdapter') />
      <cfset variables.authenService = coldSpring.getBean('AuthenticationService') />
			<cfset variables.projectId = 1 />
			<cfset credentials["username"] = "denny">
			<cfset credentials["password"] = "denny">
			<cfset variables.authenService.setCredentials(credentials)>
			<cfset variables.authenService.authenticate()>			
   </cffunction>

	<cffunction name="testGetTicketCommentTreeData" returntype="void" access="public">
		<cfset var params = structNew()>
		<cfset var results = "">
	  <cfset var rpcCall = "">
	  <cfset params["ticketId"] = 11 />
		<cfset results = variables.dojoAdapter.runCalledMethod(1,"ticket.changelog",params)>
	  <cfdump var="#results#"><cfabort />
		<cfset assertEqualsArray(expected=version,actual=results,message="Get API Failed") />
	</cffunction>
				
</cfcomponent>